pull: Only download summary if we need it for the pull operation
authorAlexander Larsson <alexl@redhat.com>
Fri, 23 Oct 2020 11:05:25 +0000 (13:05 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 23 Oct 2020 11:55:33 +0000 (13:55 +0200)
commit125ed2b199153768f92049e48eb2cd40010f87ca
tree1811da09b606acd3bc4070a10d6003ef1e85665e
parent6c8e6539e2487c5d30a18c9b89dd8d6cf4455bb7
pull: Only download summary if we need it for the pull operation

If we have a commit id for all the refs we're pulling, and if we
don't need the summary to list all the refs when mirroring then the
only reason to download the summary is for the list of deltas.

With the new "indexed-deltas" property in the config file (and mirrored
to the summary file) we can detect when we don't need the summary for
deltas and completely avoid downloading it then.
src/libostree/ostree-repo-pull-private.h
src/libostree/ostree-repo-pull.c